package com.wbt.bambootown.observable;

public class ObservableHelper {
    /**
     * 注册百度观察者
     */
    public static final int REGISTER_BAIDU_LOCATION = 1;
    /**
     * 注册网络变化观察者
     */
    public static final int REGISTER_NETWORK_STATE_CHANGE = 2;



    public static void addObserver(CustomObserver observer,int type){

        switch (type)
        {

            case REGISTER_NETWORK_STATE_CHANGE:
                NetWorkChangeHelper.getIns().addObserver(observer);
                break;

        }
    }

    public static void deleteObserver(CustomObserver observer,int type){
        switch (type)
        {

            case REGISTER_NETWORK_STATE_CHANGE:
                NetWorkChangeHelper.getIns().deleteObserver(observer);
                break;

        }
    }
}
